package com.marcinklos.filipides;

import org.springframework.security.core.GrantedAuthority;

public enum UserRole implements GrantedAuthority{
	ROLE_ADMIN(0),
	ROLE_USER(1),
	ROLE_NEW_USER(2);
	
	private int bit;

	/**
	 * @param bit
	 */
	private UserRole(int bit){
		this.bit = bit;
	}

	@Override
	public String getAuthority() {
		return this.toString();
	}
}
